﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="header.ascx.cs" Inherits="BoCaiWeb.WebSite.UC.header" %>
<%@ Import Namespace="System.Linq" %>
<script type="text/javascript">
    function menuShow(menu) //定义显示菜单的方法，
    {
        menu.style.display = 'block';
    }
    function menuHide(menu) //定义隐藏菜单的方法，
    {
        menu.style.display = 'none';
    }
</script>
<table width="100%" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td background="/images/index_02.jpg">
            <table width="985" height="98" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="169" height="68">
                        <img src="/images/index_04.jpg" height="68" alt="logo"/>
                    </td>
                    <td width="816" align="right">
                        <table height="55" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="right" valign="bottom">
                                    <a href="javascript:;" onclick="window.external.AddFavorite('http://www.hz-bc.cn/','杭州博才企业管理有限公司')">加入收藏</a> |
                                    <a href="/lanmu.aspx?id=11" title="法律声明">法律声明</a> |
                                    <a href="/lanmu.aspx?id=9" title="关于我们">关于我们</a> |
                                    <a href="/lanmu.aspx?id=9" title="联系我们">联系我们</a> |
                                    <a href="http://exmail.qq.com/login">企业邮箱</a>
                                </td>
                            </tr>
                            <tr>
                                <td height="34" align="right">
                                    <table width="200" height="30" border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td height="30" align="right">
                                                <form method="get" action="/newslist.aspx">
                                                <div class="topsearch">
                                                    <div class="searchk"><input name="title" type="text" class="kuangcss" value='<%=Request.QueryString["title"] %>'></div>
                                                    <div class="searchbtn"><input class="btncss" value="" type="submit"></div>
                                                </div>
                                                </form>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr>
                    <td height="30" colspan="2" align="center">
                        <!--导航-->
                        <div class="nav" id="nav">
                            <div class="menu">
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu01)" onmouseout="this.className='menu1';menuHide(menu01)"><a href="/index.aspx">首 页</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu02)" onmouseout="this.className='menu1';menuHide(menu02)"><a href="/lanmu.aspx?id=5">关于博才</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu03)" onmouseout="this.className='menu1';menuHide(menu03)"><a href="/lanmu.aspx?id=12">客户服务</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu04)" onmouseout="this.className='menu1';menuHide(menu04)"><a href="/newslist.aspx?id=3">资讯中心</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu05)" onmouseout="this.className='menu1';menuHide(menu05)"><a href="/joblist.aspx">猎头岗位</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu06)" onmouseout="this.className='menu1';menuHide(menu06)"><a href="/productlist.aspx">成功案例</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu07)" onmouseout="this.className='menu1';menuHide(menu07)"><a href="/myjoblist.aspx">虚位以待</a></div>
                                <div class="menu1" onmouseover="this.className='menuA';menuShow(menu08)" onmouseout="this.className='menu1';menuHide(menu08)"><a href="/lanmu.aspx?id=9">联系我们</a></div>
                            </div>
                            <div class="shouMenu">
                                <!--首页-->
                                <div style="display: none;" id="menu01" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                </div>
                                <!--关于博才-->
                                <div style="display: none; margin-left: 164px; width: 500px;"  id="menu02" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <% 
                                        int num = 0;
                                        var lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(1);
                                        foreach (var item in lanMuInfoList)
                                        {
                                            
                                    %>
                                    <%=num > 0 ? " | " : "" %><a href="/lanmu.aspx?id=<%=item.Id %>"><%=item.Name %></a>
                                    <%
                                            num++;
                                        } 
                                    %>
                                </div>
                                <!--客户服务-->
                                <div style="display: none; width: 520px; margin-left: 277px;" id="menu03" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <% 
                                        num = 0;
                                        lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(2);
                                        foreach (var item in lanMuInfoList)
                                        {
                                            
                                    %>
                                    <%=num > 0 ? " | " : "" %><a href="/lanmu.aspx?id=<%=item.Id %>"><%=item.Name %></a>
                                    <%
                                            num++;
                                        } 
                                    %>
                                </div>
                                <!--资讯中心-->
                                <div style="display: none; width: 500px; margin-left: 390px;" id="menu04" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <% 
                                        num = 0;
                                        var newClass = BoCaiWeb.WebSite.Code.Utility.GetNewsClass().Where(c => c.PId == 1);
                                        foreach (var item in newClass)
                                        {
                                            
                                    %>
                                    <%=num > 0 ? " | " : "" %><a href="/newslist.aspx?id=<%=item.Id %>"><%=item.Name %></a>
                                    <%
                                            num++;
                                        } 
                                    %>
                                </div>
                                <!--猎头岗位-->
                                <div style="display: none; width: 420px; margin-left: 503px;" id="menu05" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <% 
                                        num = 0;
                                        var jobClass = BoCaiWeb.WebSite.Code.Utility.GetNewsClass().Where(c => c.PId == 12);
                                        foreach (var item in jobClass)
                                        {
                                            
                                    %>
                                    <%=num > 0 ? " | " : "" %><a href="/joblist.aspx?id=<%=item.Id %>"><%=item.Name %></a>
                                    <%
                                            num++;
                                        } 
                                    %>
                                </div>
                                <!--成功案例-->
                                <div style="display: none; width: 170px; margin-left: 614px;" id="menu06" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <a href="/productlist.aspx">成功案例</a>
                                </div>
                                <!--虚位以待-->
                                <div style="display: none; width: 170px; margin-left: 727px;" id="menu07" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <a href="/myjoblist.aspx">虚位以待</a>
                                </div>
                                <!--联系我们-->
                                <div style="display: none; width: 170px;  margin-left: 804px;" id="menu08" onmouseover="menuShow(this)" onmouseout="menuHide(this)">
                                    <a href="/message.aspx">给我留言</a>
                                    <% 
                                        lanMuInfoList = BoCaiWeb.WebSite.Code.Utility.GetParentLanMu(4);
                                        foreach (var item in lanMuInfoList)
                                        {
                                            
                                    %>
                                     | <a href="/lanmu.aspx?id=<%=item.Id %>"><%=item.Name %></a>
                                    <%
                                        } 
                                    %>
                                </div>
                            </div>
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<% if (CurrentNavType == NavigationType.Index) {%>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td align="center" background="/images/index_16.jpg">
            <table width="100" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                            width="985" height="271">
                  <param name="movie" value="/index_datu.swf" />
                            <param name="quality" value="high" />
                            <param name="wmode" value="transparent" />
                            <embed src="/index_datu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="985" height="271"></embed>
                        </object>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<%} else { %>
<table width="100%" height="225" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
        <td align="center" valign="bottom" background="/images/6.gif">
            <img src="/images/v15.jpg" width="984" height="223" />
        </td>
    </tr>
</table>
<% }%>
